package com.dayuanit.dy16.atm.boatm.service;

import com.dayuanit.dy16.atm.boatm.dto.SalaryDTO;
import com.dayuanit.dy16.atm.boatm.dto.SalaryDetailDTO;
import com.dayuanit.dy16.atm.boatm.entity.Salary;
import com.dayuanit.dy16.atm.boatm.entity.SalaryDetail;
import com.dayuanit.dy16.atm.boatm.handler.ExcelDataListener;

import java.util.List;

public interface ISalaryService {

    void updateSalaryFile(long salaryId, String fileName);

    void createSalary(String salaryTitle, String remark, long userId);

    List<SalaryDTO> loadSalarys();

    void saveSalaryFileData(List<ExcelDataListener.SalaryExcelData> datas, long salaryId);

    void submitVerify(long userId, long salaryId);

    void approved(long usreId, long salaryId);

    void payOff(SalaryDetail detail);

    void refuse(long userId, long salaryId);

    List<SalaryDetailDTO> listDetails(long salaryId);
}
